package cn.edu.kzjsxy.graduationproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生宿舍分配表
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("student_dorm_assignments")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="StudentDormAssignments对象", description="学生宿舍分配表")
public class StudentDormAssignments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "宿舍分配记录ID")
    @TableId(value = "assignment_id", type = IdType.ASSIGN_UUID)
    private String assignmentId;

    @ApiModelProperty(value = "学生ID，外键参照学生信息表students")
    @TableField("student_id")
    private String studentId;

    @ApiModelProperty(value = "宿舍ID，外键参照宿舍信息表dormitories")
    @TableField("dormitory_id")
    private String dormitoryId;

    @ApiModelProperty(value = "学生被分配到该宿舍的日期")
    @TableField("assigned_date")
    private LocalDateTime assignedDate;

    @ApiModelProperty(value = "学生退宿日期（可为空，表示尚未退宿）")
    @TableField("check_out_date")
    private LocalDateTime checkOutDate;

    @ApiModelProperty(value = "备注信息（如分配原因、特殊情况等）")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "状态  0是正常，1是结束")
    @TableField("status")
    private Integer status;

}
